package com.alex.sporttraining;

import java.util.ArrayList;

public class Exercice {
	private int id;
	private String nom;
	private ArrayList<Serie> lesSeries;
	
	public Exercice(int id, String nom, ArrayList<Serie> lesSeries){
		this.id = id;
		this.nom = nom;
		this.lesSeries = lesSeries;
	}
	
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getNom() {
		return nom;
	}
	public void setNom(String nom) {
		this.nom = nom;
	}
	public ArrayList<Serie> getLesSeries() {
		return lesSeries;
	}
	public void setLesSeries(ArrayList<Serie> lesSeries) {
		this.lesSeries = lesSeries;
	}
	
	public void ajoutSerie(Serie s){
		lesSeries.add(s);
	}
	
	
}
